/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.app.model;

import java.util.concurrent.LinkedBlockingQueue;
import org.apache.log4j.Logger;

/**
 *
 * @author LamLe
 */
public class QueueURLs {

    public static LinkedBlockingQueue<String> queueURLs = new LinkedBlockingQueue<String>();

    private static Logger logger = Logger.getLogger(QueueURLs.class);
    
    public static void add(String str) {
        queueURLs.add(str);
    }

    public static String poll() {
        logger.info("size : " + queueURLs.size());
        return queueURLs.poll();
    }

    public static int size() {
        return queueURLs.size();
    }
}
